/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mireille.learning;

import mireille.learning.lesson1.incapsulamento.Persona;
import mireille.learning.lesson1.incapsulamento.Studente;
import mireille.learning.lesson1.incapsulamento.StudenteLavoratore;

/**
 *
 * @author Luca
 */
public class MireilleLearning {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        
        StudenteLavoratore studente = new StudenteLavoratore("Nome","Cognome",122);
        studente.setCognome("Coraci");
       
        
        //PERSONA   --- setCognome
        //   |
        //STUDENTE   ---setCognome  OVERRIDE 
        //   |
        //STUDENTE LAVORATORE  
        
        System.out.println("Il mio cognome è: "+studente.getCognome());
        

       

    }
}
